body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    color: #e74c3c;
    font-size: 24px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    color: #e74c3c;
}

.btn {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-login {
    background-color: transparent;
    color: #e74c3c;
    border: 1px solid #e74c3c;
    margin-right: 10px;
}

.btn-register {
    background-color: #e74c3c;
    color: white;
}

.btn-login:hover {
    background-color: #e74c3c;
    color: white;
}

.btn-register:hover {
    background-color: #c0392b;
}

.page-title {
    margin: 30px 0;
    color: #333;
    text-align: center;
}

.cart-items {
    margin-bottom: 40px;
}

.cart-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 20px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 18px;
    margin-bottom: 10px;
}

.cart-item-price {
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 15px;
}

.quantity-container {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.quantity-btn {
    background-color: #f1f1f1;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.quantity-input {
    width: 40px;
    height: 30px;
    text-align: center;
    margin: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cart-item-total {
    font-weight: bold;
    margin-right: 20px;
}

.remove-btn {
    background-color: transparent;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 14px;
}

.cart-summary {
    text-align: right;
}

.summary-box {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: inline-block;
}

.summary-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
}

.summary-box p {
    margin-bottom: 10px;
    font-size: 18px;
}

.btn-checkout {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.btn-checkout:hover {
    background-color: #c0392b;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}